<template>
  <van-tabbar
    v-model="active"
    active-color="#f18010"
    inactive-color="#333"
    @change="onChange"
    route
  >
    <van-tabbar-item to="/home" icon="home-o">首页</van-tabbar-item>
    <van-tabbar-item to="/search" icon="search">搜索</van-tabbar-item>
    <van-tabbar-item to="/order" icon="shopping-cart-o">订单</van-tabbar-item>
    <van-tabbar-item to="/personal" icon="user-o">我的</van-tabbar-item>
  </van-tabbar>
</template>

<script>
export default {
  name: 'FooterGuide',
  data() {
    return {
      active: 0,
    }
  },
  methods: {
    onChange(val) {
        // console.log(val)
    }
  }
}
</script>

<style lang="scss" scoped>
.van-tabbar-item {
    font-weight: bold;
}
/deep/ .van-icon {
    font-size: 23px;
    font-weight: 500;
}
</style>
